#include "Stack.h"

void test()
{
	Stack stk;
	StackInit(&stk);
	StackPush(&stk, 1);
	StackPush(&stk, 2);
	StackPush(&stk, 3);
	StackPush(&stk, 4);
	StackPush(&stk, 5);

	while (!StackEmpty(&stk))
	{
		printf("size of stk is %d, top is %d\n", StackSize(&stk), StackTop(&stk));
		printf("%d\n", StackPop(&stk));
	}
	StackDestory(&stk);
}

int main()
{
	test();
	return 0;
}